import request from '@/utils/request'

// 查询基金信息列表
export function getFundsList(query) {
    return request({
        url: '/marketdata/tfndCtroller/queryFundInfoByPage.action',
        method: 'get',
        params: query,
    })
}

// 查询基金分红列表
export function getFundDividendsList(query) {
    return request({
        url: '/marketdata/tfndCtroller/queryFundDividendInfoByPage.action',
        method: 'get',
        params: query
    })
}

// 查询基金详情列表
export function getFundPricesList(query) {
    return request({
        url: '/marketdata/tfndCtroller/queryFundPriceInfoByPage.action',
        method: 'get',
        params: query
    })
}

// 修改基金详情
export function updateFundPrice(fundForm) {
    return request({
        url: '/marketdata/tfndCtroller/updateFundPrice.action',
        method: 'post',
        data: fundForm
    })
}

// 获取上一交易日
export function getLastWorkDay() {
    return request({
        url: '/marketdata/tfndCtroller/getLastWorkday.action',
        method: 'get'
    })
}

